<?php echo $header; ?>
<?php /* regular and Google fonts array*/
	
	$fonts = array(
		''                         => '- Default -',
		'Arial'                    => 'Arial',
	'Georgia'                  => 'Georgia',
	'Helvetica'                => 'Helvetica',
	'Lucida Grande'            => 'Lucida Grande',    
	'Lucida Sans Unicode'      => 'Lucida Sans Unicode',
 	'Segoe UI'                 => 'Segoe UI',   
	'Tahoma'                   => 'Tahoma',
	'Times New Roman'          => 'Times New Roman',
	'Trebuchet MS'             => 'Trebuchet MS',    
	'Verdana'                  => 'Verdana',   
	'Abel'                     => 'Abel',
	'Abril+Fatface'            => 'Abril Fatface',
	'Aclonica'                 => 'Aclonica',
	'Acme'                     => 'Acme',
	'Actor'                    => 'Actor',
	'Adamina'                  => 'Adamina',
	'Advent+Pro'               => 'Advent Pro',
	'Aguafina+Script'          => 'Aguafina Script',    
	'Aladin'                   => 'Aladin',
	'Aldrich'                  => 'Aldrich',
	'Alegreya'                 => 'Alegreya',
	'Alegreya+SC'              => 'Alegreya SC',
	'Alex+Brush'               => 'Alex Brush',
	'Alfa+Slab+One'            => 'Alfa Slab One',
	'Alice'                    => 'Alice',
	'Alike'                    => 'Alike',
	'Alike+Angular'            => 'Alike Angular',
	'Allan'                    => 'Allan',
	'Allerta'                  => 'Allerta',
	'Allerta+Stencil'          => 'Allerta Stencil',
	'Allura'                   => 'Allura',
	'Almendra'                 => 'Almendra',
	'Almendra+SC'              => 'Almendra SC',
	'Amaranth'                 => 'Amaranth',
	'Amatic+SC'                => 'Amatic SC',
	'Amethysta'                => 'Amethysta',
	'Andada'                   => 'Andada',
	'Andika'                   => 'Andika',
	'Angkor'                   => 'Angkor',    
	'Annie+Use+Your+Telescope' => 'Annie Use Your Telescope',
	'Anonymous+Pro'            => 'Anonymous Pro',
	'Antic'                    => 'Antic',
	'Antic+Didone'             => 'Antic Didone',
	'Antic+Slab'               => 'Antic Slab',        
	'Anton'                    => 'Anton',
	'Arapey'                   => 'Arapey',
	'Arbutus'                  => 'Arbutus',    
	'Architects+Daughter'      => 'Architects Daughter',
	'Arimo'                    => 'Arimo',
	'Arizonia'                 => 'Arizonia',    
	'Armata'                   => 'Armata',
	'Artifika'                 => 'Artifika',
	'Arvo'                     => 'Arvo',
	'Asap'                     => 'Asap',
	'Asset'                    => 'Asset',
	'Astloch'                  => 'Astloch',
	'Asul'                     => 'Asul',
	'Atomic+Age'               => 'Atomic Age',
	'Aubrey'                   => 'Aubrey',
	'Audiowide'                => 'Audiowide', 
	'Average'                  => 'Average',
	'Averia+Gruesa+Libre'      => 'Averia Gruesa Libre',
	'Averia+Libre'             => 'Averia Libre',
	'Averia+Sans+Libre'        => 'Averia Sans Libre',
	'Averia+Serif+Libre'       => 'Averia Serif Libre',                       
	'Bad+Script'               => 'Bad Script',
	'Balthazar'                => 'Balthazar',
	'Bangers'                  => 'Bangers',
	'Basic'                    => 'Basic',
	'Battambang'               => 'Battambang',
	'Baumans'                  => 'Baumans',
	'Bayon'                    => 'Bayon',
	'Belgrano'                 => 'Belgrano',
	'Belleza'                  => 'Belleza',    
	'Bentham'                  => 'Bentham',
	'Berkshire+Swash'          => 'Berkshire Swash',    
	'Bevan'                    => 'Bevan',
	'Bigshot+One'              => 'Bigshot One',
	'Bilbo'                    => 'Bilbo',
	'Bilbo+Swash+Caps'         => 'Bilbo Swash Caps',
	'Bitter'                   => 'Bitter',
	'Black+Ops+One'            => 'Black Ops One',
	'Bokor'                    => 'Bokor',
	'Bonbon'                   => 'Bonbon',
	'Boogaloo'                 => 'Boogaloo',
	'Bowlby+One'               => 'Bowlby One',
	'Bowlby+One+SC'            => 'Bowlby One SC',
	'Brawler'                  => 'Brawler',
	'Bree+Serif'               => 'Bree Serif',
	'Bubblegum+Sans'           => 'Bubblegum Sans',
	'Buda'                     => 'Buda',
	'Buenard'                  => 'Buenard',
	'Butcherman'               => 'Butcherman',
	'Butterfly+Kids'           => 'Butterfly Kids',
	'Cabin'                    => 'Cabin',
	'Cabin+Condensed'          => 'Cabin Condensed',
	'Cabin+Sketch'             => 'Cabin Sketch',
	'Caesar+Dressing'          => 'Caesar Dressing',
	'Cagliostro'               => 'Cagliostro',
	'Calligraffitti'           => 'Calligraffitti',
	'Cambo'                    => 'Cambo',
	'Candal'                   => 'Candal',
	'Cantarell'                => 'Cantarell',
	'Cantata+One'              => 'Cantata One',
	'Cardo'                    => 'Cardo',
	'Carme'                    => 'Carme',
	'Carter+One'               => 'Carter One',
	'Caudex'                   => 'Caudex',    
	'Cedarville Cursive'       => 'Cedarville Cursive',
	'Ceviche+One'              => 'Ceviche One',    
	'Changa+One'               => 'Changa One',
	'Chango'                   => 'Chango',
	'Chau+Philomene+One'       => 'Chau Philomene One',    
	'Chelsea+Market'           => 'Chelsea Market',
	'Chenla'                   => 'Chenla',    
	'Cherry+Cream+Soda'        => 'Cherry Cream Soda',
	'Chewy'                    => 'Chewy',
	'Chicle'                   => 'Chicle',
	'Chivo'                    => 'Chivo',    

	'Coda'                     => 'Coda',
	'Coda+Caption'             => 'Coda Caption',
	'Codystar'                 => 'Codystar',
	'Comfortaa'                => 'Comfortaa',
	'Coming+Soon'              => 'Coming Soon',
	'Concert+One'              => 'Concert One',    
	'Condiment'                => 'Condiment',
	'Content'                  => 'Content',    
	'Contrail+One'             => 'Contrail One',
	'Convergence'              => 'Convergence',
	'Cookie'                   => 'Cookie',
	'Copse'                    => 'Copse',
	'Corben'                   => 'Corben',
	'Cousine'                  => 'Cousine',
	'Coustard'                 => 'Coustard',
	'Covered+By+Your+Grace'    => 'Covered By Your Grace',
	'Crafty+Girls'             => 'Crafty Girls',
	'Creepster'                => 'Creepster',        
	'Crete+Round'              => 'Crete Round',
	'Crimson+Text'             => 'Crimson Text',
	'Crushed'                  => 'Crushed',
	'Cuprum'                   => 'Cuprum',
	'Cutive'                   => 'Cutive', 
	'Damion'                   => 'Damion',
	'Dancing+Script'           => 'Dancing Script',
	'Dangrek'                  => 'Dangrek',
	'Dawning+Of+A+New+Day'     => 'Dawning of a New Day',
	'Days+One'                 => 'Days One',        
	'Delius'                   => 'Delius',
	'Delius+Swash+Caps'        => 'Delius Swash Caps',
	'Delius+Unicase'           => 'Delius Unicase',
	'Della+Respira'            => 'Della Respira',
	'Devonshire'               => 'Devonshire',
	'Didact+Gothic'            => 'Didact Gothic',
	'Diplomata'                => 'Diplomata',
	'Diplomata+SC'             => 'Diplomata SC',
	'Doppio+One'               => 'Doppio One',
	'Dorsa'                    => 'Dorsa',
	'Dosis'                    => 'Dosis',    
	'Dr+Sugiyama'              => 'Dr Sugiyama',
	'Droid+Sans'               => 'Droid Sans',
	'Droid+Sans+Mono'          => 'Droid Sans Mono',
	'Droid+Serif'              => 'Droid Serif',
	'Duru+Sans'                => 'Duru Sans',
	'Dynalight'                => 'Dynalight',
	'Eater'                    => 'Eater',
	'EB+Garamond'              => 'EB Garamond',
	'Economica'                => 'Economica',
	'Electrolize'              => 'Electrolize',
	'Emblema+One'              => 'Emblema One',
	'Emilys+Candy'             => 'Emilys Candy',    
	'Engagement'               => 'Engagement',
	'Enriqueta'                => 'Enriqueta',
	'Erica+One'                => 'Erica One',
	'Esteban'                  => 'Esteban',
	'Euphoria+Script'          => 'Euphoria Script',
	'Ewert'                    => 'Ewert',    
	'Exo'                      => 'Exo',
	'Expletus+Sans'            => 'Expletus Sans',
	'Fanwood+Text'             => 'Fanwood Text',
	'Fascinate'                => 'Fascinate',
	'Fascinate+Inline'         => 'Fascinate Inline',
	'Federant'                 => 'Federant',
	'Federo'                   => 'Federo',
	'Felipa'                   => 'Felipa',
	'Fjord+One'                => 'Fjord One',
	'Flamenco'                 => 'Flamenco',
	'Flavors'                  => 'Flavors',
	'Fondamento'               => 'Fondamento',
	'Fontdiner+Swanky'         => 'Fontdiner Swanky',
	'Forum'                    => 'Forum',
	'Francois+One'             => 'Francois One',
	'Fredericka+The+Great'     => 'Fredericka the Great',   
    'Fredoka+One'              => 'Fredoka One',
    'Freehand'                 => 'Freehand', 
	'Fresca'                   => 'Fresca',
	'Frijole'                  => 'Frijole',
	'Fugaz+One'                => 'Fugaz One',
	'Galdeano'                 => 'Galdeano',
	'Gentium+Basic'            => 'Gentium Basic',
	'Gentium+Book+Basic'       => 'Gentium Book Basic',
	'Geo'                      => 'Geo',
	'Geostar'                  => 'Geostar',
	'Geostar+Fill'             => 'Geostar Fill',
	'Germania+One'             => 'Germania One',
	'GFS+Didot'                => 'GFS Didot',
	'GFS+Neohellenic'          => 'GFS Neohellenic',
	'Give+You+Glory'           => 'Give You Glory',
	'Glass+Antiqua'            => 'Glass Antiqua',
	'Glegoo'                   => 'Glegoo',
	'Gloria+Hallelujah'        => 'Gloria Hallelujah',
	'Goblin+One'               => 'Goblin One',
	'Gochi+Hand'               => 'Gochi Hand',
	'Gorditas'                 => 'Gorditas',
	'Goudy+Bookletter+1911'    => 'Goudy Bookletter 1911',
	'Graduate'                 => 'Graduate',
	'Gravitas+One'             => 'Gravitas One',
	'Great Vibes'              => 'Great Vibes',
	'Gruppo'                   => 'Gruppo',
	'Gudea'                    => 'Gudea',
	'Habibi'                   => 'Habibi',
	'Hammersmith+One'          => 'Hammersmith One',
	'Handlee'                  => 'Handlee',
	'Hanuman'                  => 'Hanuman',
	'Happy+Monkey'             => 'Happy Monkey',
	'Henny+Penny'              => 'Henny Penny',
	'Herr+Von+Muellerhoff'     => 'Herr Von Muellerhoff',
	'Holtwood+One+SC'          => 'Holtwood One SC',
	'Homemade+Apple'           => 'Homemade Apple',    
	'Homenaje'                 => 'Homenaje',
	'Iceberg'                  => 'Iceberg',
	'Iceland'                  => 'Iceland',
	'IM+Fell+Double+Pica'      => 'IM Fell Double Pica',
	'IM+Fell+Double+Pica+SC'   => 'IM Fell Double Pica SC',
	'IM+Fell+DW+Pica'          => 'IM Fell DW Pica',    
	'IM+Fell+DW+Pica+SC'       => 'IM Fell DW Pica SC',
	'IM+Fell+English'          => 'IM Fell English',
	'IM+Fell+English+SC'       => 'IM Fell English SC',
	'IM+Fell+French+Canon'     => 'IM Fell French Canon',
	'IM+Fell+French+Canon+SC'  => 'IM Fell French Canon SC',
	'IM+Fell+Great+Primer'     => 'IM Fell Great Primer',
	'IM+Fell+Great+Primer+SC'  => 'IM Fell Great Primer SC',
	'Imprima'                  => 'Imprima',
	'Inconsolata'              => 'Inconsolata',
	'Inder'                    => 'Inder',
	'Indie+Flower'             => 'Indie Flower',
	'Inika'                    => 'Inika',
	'Irish+Grover'             => 'Irish Grover',
	'Istok+Web'                => 'Istok Web',
	'Italiana'                 => 'Italiana',
	'Italianno'                => 'Italianno',
	'Jim+Nightshade'           => 'Jim Nightshade',
	'Jockey+One'               => 'Jockey One',
	'Jolly Lodger'             => 'Jolly Lodger',
	'Josefin+Sans'             => 'Josefin Sans',
	'Josefin+Slab'             => 'Josefin Slab',
	'Judson'                   => 'Judson',
	'Julee'                    => 'Julee',
	'Junge'                    => 'Junge',
	'Jura'                     => 'Jura',
	'Just+Another+Hand'        => 'Just Another Hand',
	'Just+Me+Again+Down+Here'  => 'Just Me Again Down Here',
	'Kameron'                  => 'Kameron',
	'Karla'                    => 'Karla',
	'Kaushan+Script'           => 'Kaushan Script',
	'Kelly+Slab'               => 'Kelly Slab',
	'Kenia'                    => 'Kenia',
	'Khmer'                    => 'Khmer',
	'Knewave'                  => 'Knewave',
	'Kotta+One'                => 'Kotta One',
	'Koulen'                   => 'Koulen',
	'Kranky'                   => 'Kranky',
	'Kreon'                    => 'Kreon',
	'Kristi'                   => 'Kristi',
	'Krona+One'                => 'Krona One',
	'La+Belle+Aurore'          => 'La Belle Aurore',
	'Lancelot'                 => 'Lancelot',
	'Lato'                     => 'Lato',
	'League+Script'            => 'League Script',
	'Leckerli+One'             => 'Leckerli One',
	'Ledger'                   => 'Ledger',
	'Lekton'                   => 'Lekton',
	'Lemon'                    => 'Lemon',
	'Lilita+One'               => 'Lilita One',
	'Limelight'                => 'Limelight',
	'Linden+Hill'              => 'Linden Hill',
	'Lobster'                  => 'Lobster',
	'Lobster+Two'              => 'Lobster Two',
	'Londrina+Outline'         => 'Londrina Outline',
	'Londrina+Shadow'          => 'Londrina Shadow',
	'Londrina+Sketch'          => 'Londrina Sketch',
	'Londrina+Solid'           => 'Londrina Solid',
	'Lora'                     => 'Lora',
	'Love+Ya+Like+A+Sister'    => 'Love Ya Like A Sister',
	'Loved+By+The+King'        => 'Loved by the King',
	'Lovers+Quarrel'           => 'Lovers Quarrel',
	'Luckiest+Guy'             => 'Luckiest Guy',
	'Lusitana'                 => 'Lusitana',
	'Lustria'                  => 'Lustria',
	'Macondo'                  => 'Macondo',
	'Macondo+Swash+Caps'       => 'Macondo Swash Caps',
	'Magra'                    => 'Magra',
	'Maiden+Orange'            => 'Maiden Orange',
	'Mako'                     => 'Mako',
	'Marck+Script'             => 'Marck Script',
	'Marko+One'                => 'Marko One',
	'Marmelad'                 => 'Marmelad',
	'Marvel'                   => 'Marvel',
	'Mate'                     => 'Mate',
	'Mate+SC'                  => 'Mate SC',
	'Maven+Pro'                => 'Maven Pro',    
	'Meddon'                   => 'Meddon',
	'MedievalSharp'            => 'MedievalSharp',
	'Medula+One'               => 'Medula One',
	'Megrim'                   => 'Megrim',
	'Merienda+One'             => 'Merienda One',
	'Merriweather'             => 'Merriweather',
	'Metal'                    => 'Metal',
	'Metamorphous'             => 'Metamorphous',
	'Metrophobic'              => 'Metrophobic',
	'Michroma'                 => 'Michroma',
	'Miltonian'                => 'Miltonian',
	'Miltonian+Tattoo'         => 'Miltonian Tattoo',
	'Miniver'                  => 'Miniver',
	'Miss+Fajardose'           => 'Miss Fajardose',
	'Modern+Antiqua'           => 'Modern Antiqua',
	'Molengo'                  => 'Molengo',
	'Monofett'                 => 'Monofett',
	'Monoton'                  => 'Monoton',
	'Monsieur+La+Doulaise'     => 'Monsieur La Doulaise',
	'Montaga'                  => 'Montaga',
	'Montez'                   => 'Montez',
	'Montserrat'               => 'Montserrat',
	'Moul'                     => 'Moul',
	'Moulpali'                 => 'Moulpali',
	'Mountains+of+Christmas'   => 'Mountains of Christmas',
	'Mr+Bedfort'               => 'Mr Bedfort',
	'Mr+Dafoe'                 => 'Mr Dafoe',
	'Mr+De+Haviland'           => 'Mr De Haviland',
	'Mrs+Saint+Delafield'      => 'Mrs Saint Delafield',
	'Mrs+Sheppards'            => 'Mrs Sheppards',
	'Muli'                     => 'Muli',
	'Mystery+Quest'            => 'Mystery Quest',
	'Neucha'                   => 'Neucha',
	'Neuton'                   => 'Neuton',
	'News+Cycle'               => 'News Cycle',
	'Niconne'                  => 'Niconne',
	'Nixie+One'                => 'Nixie One',
	'Nobile'                   => 'Nobile',
	'Nokora'                   => 'Nokora',
	'Norican'                  => 'Norican',
	'Nosifer'                  => 'Nosifer',
	'Nothing+You+Could+Do'     => 'Nothing You Could Do',
	'Noticia+Text'             => 'Noticia Text',
	'Nova+Cut'                 => 'Nova Cut',
	'Nova+Flat'                => 'Nova Flat',
	'Nova+Mono'                => 'Nova Mono',
	'Nova+Oval'                => 'Nova Oval',
	'Nova+Round'               => 'Nova Round',
	'Nova+Script'              => 'Nova Script',
	'Nova+Slim'                => 'Nova Slim',
	'Nova+Square'              => 'Nova Square',
	'Numans'                   => 'Numans',
	'Nunito'                   => 'Nunito',
	'Odor+Mean+Chey'           => 'Odor Mean Chey',
	'Old+Standard+TT'          => 'Old Standard TT',
	'Oldenburg'                => 'Oldenburg',
	'Oleo+Script'              => 'Oleo Script',
	'Open+Sans'                => 'Open Sans',
	'Open+Sans+Condensed'      => 'Open Sans Condensed',
	'Orbitron'                 => 'Orbitron',
	'Original+Surfer'          => 'Original Surfer',
	'Oswald'                   => 'Oswald',
	'Over+the+Rainbow'         => 'Over the Rainbow',
	'Overlock'                 => 'Overlock',
	'Overlock+SC'              => 'Overlock SC',
	'Ovo'                      => 'Ovo',
	'Oxygen'                   => 'Oxygen',
	'Pacifico'                 => 'Pacifico',
	'Parisienne'               => 'Parisienne',
	'Passero+One'              => 'Passero One',
	'Passion+One'              => 'Passion One',
	'Patrick+Hand'             => 'Patrick Hand',
	'Patua+One'                => 'Patua One',
	'Paytone+One'              => 'Paytone One',
	'Permanent+Marker'         => 'Permanent Marker',
	'Petrona'                  => 'Petrona',
	'Philosopher'              => 'Philosopher',
	'Piedra'                   => 'Piedra',
	'Pinyon+Script'            => 'Pinyon Script',
	'Plaster'                  => 'Plaster',
	'Play'                     => 'Play',
	'Playball'                 => 'Playball',
	'Playfair+Display'         => 'Playfair Display',
	'Podkova'                  => 'Podkova',
	'Poiret+One'               => 'Poiret One',
	'Poller+One'               => 'Poller One',
	'Poly'                     => 'Poly',
	'Pompiere'                 => 'Pompiere',
	'Pontano+Sans'             => 'Pontano Sans',
	'Port+Lligat+Sans'         => 'Port Lligat Sans',
	'Port+Lligat+Slab'         => 'Port Lligat Slab',
	'Prata'                    => 'Prata',
	'Preahvihear'              => 'Preahvihear',
	'Press+Start+2P'           => 'Press Start 2P',
	'Princess+Sofia'           => 'Princess Sofia',
	'Prociono'                 => 'Prociono',
	'Prosto+One'               => 'Prosto One',
	'PT+Mono'                  => 'PT Mono',
	'PT+Sans'                  => 'PT Sans',
	'PT+Sans+Caption'          => 'PT Sans Caption',
	'PT+Sans+Narrow'           => 'PT Sans Narrow',
	'PT+Serif'                 => 'PT Serif',
	'PT+Serif+Caption'         => 'PT Serif Caption',
	'Puritan'                  => 'Puritan',
	'Quantico'                 => 'Quantico',
	'Quattrocento'             => 'Quattrocento',
	'Quattrocento+Sans'        => 'Quattrocento Sans',
	'Questrial'                => 'Questrial',
	'Quicksand'                => 'Quicksand',
	'Qwigley'                  => 'Qwigley',
	'Radley'                   => 'Radley',
	'Raleway'                  => 'Raleway',
	'Rammetto+One'             => 'Rammetto One',
	'Rancho'                   => 'Rancho',
	'Rationale'                => 'Rationale',
	'Redressed'                => 'Redressed',
	'Reenie+Beanie'            => 'Reenie Beanie',
	'Revalia'                  => 'Revalia',
	'Ribeye'                   => 'Ribeye',
	'Ribeye+Marrow'            => 'Ribeye Marrow',
	'Righteous'                => 'Righteous',
	'Rochester'                => 'Rochester',
	'Rock+Salt'                => 'Rock Salt',
	'Rokkitt'                  => 'Rokkitt',
	'Ropa+Sans'                => 'Ropa Sans',
	'Rosario'                  => 'Rosario',
	'Rosarivo'                 => 'Rosarivo',
	'Rouge+Script'             => 'Rouge Script',
	'Ruda'                     => 'Ruda',
	'Ruge+Boogie'              => 'Ruge Boogie',
	'Ruluko'                   => 'Ruluko',
	'Ruslan+Display'           => 'Ruslan Display',
	'Russo+One'                => 'Russo One',
	'Ruthie'                   => 'Ruthie',
	'Sail'                     => 'Sail',
	'Salsa'                    => 'Salsa',
	'Sancreek'                 => 'Sancreek',
	'Sansita+One'              => 'Sansita One',
	'Sarina'                   => 'Sarina',
	'Satisfy'                  => 'Satisfy',
	'Schoolbell'               => 'Schoolbell',
	'Seaweed+Script'           => 'Seaweed Script',
	'Sevillana'                => 'Sevillana',
	'Shadows+Into+Light'       => 'Shadows Into Light',
	'Shadows+Into+Light+Two'   => 'Shadows Into Light Two',
	'Shanti'                   => 'Shanti',
	'Share'                    => 'Share',
	'Shojumaru'                => 'Shojumaru',
	'Short+Stack'              => 'Short Stack',
	'Siemreap'                 => 'Siemreap',
	'Sigmar+One'               => 'Sigmar One',
	'Signika'                  => 'Signika',
	'Signika+Negative'         => 'Signika Negative',
	'Simonetta'                => 'Simonetta',
	'Sirin+Stencil'            => 'Sirin Stencil',
	'Six+Caps'                 => 'Six Caps',
	'Slackey'                  => 'Slackey',
	'Smokum'                   => 'Smokum',
	'Smythe'                   => 'Smythe',
	'Sniglet'                  => 'Sniglet',
	'Snippet'                  => 'Snippet',
	'Sofia'                    => 'Sofia',
	'Sonsie+One'               => 'Sonsie One',
	'Sorts+Mill+Goudy'         => 'Sorts Mill Goudy',
	'Special+Elite'            => 'Special Elite',
	'Spicy+Rice'               => 'Spicy Rice',
	'Spinnaker'                => 'Spinnaker',
	'Spirax'                   => 'Spirax',
	'Squada+One'               => 'Squada One',
	'Stardos+Stencil'          => 'Stardos Stencil',
	'Stint+Ultra+Condensed'    => 'Stint Ultra Condensed',
	'Stint+Ultra+Expanded'     => 'Stint Ultra Expanded',
	'Stoke'                    => 'Stoke',
	'Sue+Ellen+Francisco'      => 'Sue Ellen Francisco',
	'Sunshiney'                => 'Sunshiney',
	'Supermercado+One'         => 'Supermercado One',
	'Suwannaphum'              => 'Suwannaphum',
	'Swanky+And+Moo+Moo'       => 'Swanky and Moo Moo',
	'Syncopate'                => 'Syncopate',
	'Tangerine'                => 'Tangerine',
	'Taprom'                   => 'Taprom',
	'Telex'                    => 'Telex',
	'Tenor+Sans'               => 'Tenor Sans',
	'Terminal+Dosis'           => 'Terminal Dosis',
	'The+Girl+Next+Door'       => 'The Girl Next Door',
	'Tienne'                   => 'Tienne',
	'Tinos'                    => 'Tinos',
	'Titan+One'                => 'Titan One',
	'Trade+Winds'              => 'Trade Winds',
	'Trocchi'                  => 'Trocchi',
	'Trochut'                  => 'Trochut',
	'Trykker'                  => 'Trykker',
	'Tulpen+One'               => 'Tulpen One',
	'Ubuntu'                   => 'Ubuntu',
	'Ubuntu+Condensed'         => 'Ubuntu Condensed',
	'Ubuntu+Mono'              => 'Ubuntu Mono',
	'Ultra'                    => 'Ultra',
	'Uncial+Antiqua'           => 'Uncial Antiqua',
	'UnifrakturCook'           => 'UnifrakturCook',
	'UnifrakturMaguntia'       => 'UnifrakturMaguntia',
	'Unkempt'                  => 'Unkempt',
	'Unlock'                   => 'Unlock',
	'Unna'                     => 'Unna',
	'Varela'                   => 'Varela',
	'Varela+Round'             => 'Varela Round',
	'Vast+Shadow'              => 'Vast Shadow',
	'Vibur'                    => 'Vibur',
	'Vidaloka'                 => 'Vidaloka',
	'Viga'                     => 'Viga',
	'Voces'                    => 'Voces',
	'Volkhov'                  => 'Volkhov',
	'Vollkorn'                 => 'Vollkorn',
	'Voltaire'                 => 'Voltaire',
	'VT323'                    => 'VT323',
	'Waiting+for+the+Sunrise'  => 'Waiting for the Sunrise',
	'Wallpoet'                 => 'Wallpoet',
	'Walter+Turncoat'          => 'Walter Turncoat',
	'Wellfleet'                => 'Wellfleet',
	'Wire+One'                 => 'Wire One',
	'Yanone+Kaffeesatz'        => 'Yanone Kaffeesatz',
	'Yellowtail'               => 'Yellowtail',
	'Yeseva+One'               => 'Yeseva One',
	'Yesteryear'               => 'Yesteryear',
	'Zeyada'                   => 'Zeyada',
		);
        
// Default values
if(empty($moderns_full_slideshow_transition_speed)) $moderns_full_slideshow_transition_speed ="700";
if(empty($moderns_full_slideshow_slide_interval)) $moderns_full_slideshow_slide_interval ="3000";


foreach ($languages as $language) { 
	if(empty($moderns_email[$language["language_id"]])){$moderns_email[$language["language_id"]] ="Send email via our";}
	if(empty($moderns_powered[$language["language_id"]])){$moderns_powered[$language["language_id"]] ="© 2003-2014 Taobao.com 版权所有";}
}


?>
<style type="text/css">
.color { border:1px solid #ccc; padding:3px 6px!important; }
.info-help { color: #666; font-size:0.9em; }
.img-patt { width:45px; display: inline-block; text-align: center; }
.box > .content h2 { font-size:13px; color:#003A88; text-transform:capitalize; margin:0; text-align:left; border:none; }
table.form > tbody > tr > td:first-child { text-align:right; }
table.form1 { background:#f9f9f9; }
.social img{background:#000; padding:2px; float:right; margin-left:10px;}
.payment_image img{float:right; margin-left:10px;}
</style>
<div id="content">
<div class="breadcrumb">
  <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  <?php } ?>
</div>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  <div class="heading">
    <h1><img src="view/image/module.png" alt="" /> <?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
  </div>
  <div class="content">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
      <div style="padding:8px 10px 18px 10px ">
        <label><?php echo $entry_status; ?></label>
        <select name="moderns_status">
          <?php if ($moderns_status) { ?>
          <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
          <option value="0"><?php echo $text_disabled; ?></option>
          <?php } else { ?>
          <option value="1"><?php echo $text_enabled; ?></option>
          <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
          <?php } ?>
        </select>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <label>Moderns Skin: </label>
        <select name="moderns_theme_skin">
                <option value="1"<?php if($moderns_theme_skin == '1') echo ' selected="selected"';?>>Black</option>
                <option value="0"<?php if($moderns_theme_skin == '0') echo ' selected="selected"';?>>White</option>
              </select>
      </div>
      <div id="tabs" class="htabs">
      <a href="#tab_general">FullScreen SlideShow</a>
      <a href="#tab_header"><?php echo $entry_header; ?></a>
      <a href="#tab_footer"><?php echo $entry_footer; ?></a>
      <a href="#tab_colors"><?php echo $entry_colors_background; ?></a>
      <a href="#tab_fonts"><?php echo $entry_fonts_sub; ?></a>
      <a href="#tab_custom_css"><?php echo $entry_custom_css; ?></a>
      </div>
      <div id="tab_general">
        <table class="form">
        <tr>
            <td>HomePage</td>
            <td><select name="moderns_full_slideshow">
                <option value="1"<?php if($moderns_full_slideshow == '1') echo ' selected="selected"';?>>Only Fullscreen SlideShow in Homepage</option>
                <option value="0"<?php if($moderns_full_slideshow == '0') echo ' selected="selected"';?>>Fullscreen SlideShow with Content in Homepage</option>
              </select></td>
          </tr>
          <tr>
            <td>Overlay Pattern</td>
            <td><select name="moderns_overlay_pattern">
                  <option value="0"<?php if($moderns_overlay_pattern == '0') echo ' selected="selected"';?>><?php echo $text_disabled; ?></option>
                  <option value="1"<?php if($moderns_overlay_pattern == '1') echo ' selected="selected"';?>><?php echo $text_enabled; ?></option>
                </select></td>
          </tr>
          
          <tr>
            <td>Transition</td>
            <td><select name="moderns_full_slideshow_transition">
                  <option value="0"<?php if($moderns_full_slideshow_transition == '0') echo ' selected="selected"';?>>None</option>
                  <option value="1"<?php if($moderns_full_slideshow_transition == '1') echo ' selected="selected"';?>>Fade</option>
                  <option value="2"<?php if($moderns_full_slideshow_transition == '2') echo ' selected="selected"';?>>Slide Top</option>
                  <option value="3"<?php if($moderns_full_slideshow_transition == '3') echo ' selected="selected"';?>>Slide Right</option>
                  <option value="4"<?php if($moderns_full_slideshow_transition == '4') echo ' selected="selected"';?>>Slide Bottom</option>
                  <option value="5"<?php if($moderns_full_slideshow_transition == '5') echo ' selected="selected"';?>>Slide Left</option>
                  <option value="6"<?php if($moderns_full_slideshow_transition == '6') echo ' selected="selected"';?>>Carousel Right</option>
                  <option value="7"<?php if($moderns_full_slideshow_transition == '7') echo ' selected="selected"';?>>Carousel Left</option>
                </select></td>
          </tr>
          <tr>
            <td>Transition Speed</td>
            <td><input type="text" name="moderns_full_slideshow_transition_speed" value="<?php echo $moderns_full_slideshow_transition_speed; ?>" />
            &nbsp;&nbsp;<span class="info-help">Speed of Transition</span>
            </td>
          </tr>
          <tr>
            <td>Slide Interval</td>
            <td><input type="text" name="moderns_full_slideshow_slide_interval" value="<?php echo $moderns_full_slideshow_slide_interval; ?>" /> &nbsp;&nbsp;<span class="info-help">Length between transitions</span></td>
          </tr>
          
          
          
          
        </table>
      </div>
      <div id="tab_header" >
        <div id="header_tabs" class="vtabs">
        <a href="#tab_top_area"><?php echo $entry_general; ?></a>
        <a href="#tab_main_menu"><?php echo $entry_main_menu; ?></a>
            
         </div>
         <div id="tab_top_area" class="vtabs-content">
         <table class="form">
          <tr>
            <td colspan="2"><h2>Logo Top Margin</h2></td>
          </tr>        
        <tr>
            <td>Top Margin</td>
            <td>
            <select name="moderns_logo_top_margin">
                <option value="0"<?php if($moderns_logo_top_margin == '0') echo ' selected="selected"';?>>0px</option>
                <option value="1"<?php if($moderns_logo_top_margin == '1') echo ' selected="selected"';?>>1px</option>
                <option value="2"<?php if($moderns_logo_top_margin == '2') echo ' selected="selected"';?>>2px</option>
                <option value="3"<?php if($moderns_logo_top_margin == '3') echo ' selected="selected"';?>>3px</option>
                <option value="4"<?php if($moderns_logo_top_margin == '4') echo ' selected="selected"';?>>4px</option>
                <option value="5"<?php if($moderns_logo_top_margin == '5') echo ' selected="selected"';?>>5px</option>
                <option value="6"<?php if($moderns_logo_top_margin == '6') echo ' selected="selected"';?>>6px</option>
                <option value="7"<?php if($moderns_logo_top_margin == '7') echo ' selected="selected"';?>>7px</option>
                <option value="8"<?php if($moderns_logo_top_margin == '8') echo ' selected="selected"';?>>8px</option>
                <option value="9"<?php if($moderns_logo_top_margin == '9') echo ' selected="selected"';?>>9px</option>
                <option value="10"<?php if($moderns_logo_top_margin == '10') echo ' selected="selected"';?>>10px</option>
                <option value="11"<?php if($moderns_logo_top_margin == '11') echo ' selected="selected"';?>>11px</option>
                <option value="12"<?php if($moderns_logo_top_margin == '12') echo ' selected="selected"';?>>12px</option>
                <option value="13"<?php if($moderns_logo_top_margin == '13') echo ' selected="selected"';?>>13px</option>
                <option value="14"<?php if($moderns_logo_top_margin == '14') echo ' selected="selected"';?>>14px</option>
                <option value="15"<?php if($moderns_logo_top_margin == '15') echo ' selected="selected"';?>>15px</option>
                <option value="16"<?php if($moderns_logo_top_margin == '16') echo ' selected="selected"';?>>16px</option>
                <option value="17"<?php if($moderns_logo_top_margin == '17') echo ' selected="selected"';?>>17px</option>
                <option value="18"<?php if($moderns_logo_top_margin == '18') echo ' selected="selected"';?>>18px</option>
                <option value="19"<?php if($moderns_logo_top_margin == '19') echo ' selected="selected"';?>>19px</option>
                <option value="20"<?php if($moderns_logo_top_margin == '20') echo ' selected="selected"';?>>20px</option>
                <option value="21"<?php if($moderns_logo_top_margin == '21') echo ' selected="selected"';?>>21px</option>
                <option value="22"<?php if($moderns_logo_top_margin == '22') echo ' selected="selected"';?>>22px</option>
                <option value="23"<?php if($moderns_logo_top_margin == '23') echo ' selected="selected"';?>>23px</option>
                <option value="24"<?php if($moderns_logo_top_margin == '24') echo ' selected="selected"';?>>24px</option>
                <option value="25"<?php if($moderns_logo_top_margin == '25') echo ' selected="selected"';?>>25px</option>
                <option value="26"<?php if($moderns_logo_top_margin == '26') echo ' selected="selected"';?>>26px</option>
                <option value="27"<?php if($moderns_logo_top_margin == '27') echo ' selected="selected"';?>>27px</option>
                <option value="28"<?php if($moderns_logo_top_margin == '28') echo ' selected="selected"';?>>28px</option>
                <option value="29"<?php if($moderns_logo_top_margin == '29') echo ' selected="selected"';?>>29px</option>
                <option value="30"<?php if($moderns_logo_top_margin == '30') echo ' selected="selected"';?>>30px</option>
                <option value="31"<?php if($moderns_logo_top_margin == '31') echo ' selected="selected"';?>>31px</option>
                <option value="32"<?php if($moderns_logo_top_margin == '32') echo ' selected="selected"';?>>32px</option>
                <option value="33"<?php if($moderns_logo_top_margin == '33') echo ' selected="selected"';?>>33px</option>
                <option value="34"<?php if($moderns_logo_top_margin == '34') echo ' selected="selected"';?>>34px</option>
                <option value="35"<?php if($moderns_logo_top_margin == '35') echo ' selected="selected"';?>>35px</option>
                
              </select>
            </td>
          </tr>
          </table>
        </div>
        <div id="tab_main_menu" class="vtabs-content">
          <table class="form">
          
            <tr>
              <td colspan="2"><h2>Home Link</h2></td>
            </tr>
            <tr>
              <td>Show home page link:</td>
              <td><select name="moderns_home_link">
                  <option value="1"<?php if($moderns_home_link == '1') echo ' selected="selected"';?>><?php echo $text_disabled; ?></option>
                  <option value="2"<?php if($moderns_home_link == '2') echo ' selected="selected"';?>><?php echo $text_enabled; ?></option>
                </select></td>
            </tr>
          </table>
          <table class="form">
            <tr>
              <td colspan="2"><h2><?php echo $entry_categories; ?></h2></td>
            </tr>
            <tr>
              <td><?php echo $entry_select_categories; ?></td>
              <td><select name="moderns_top_menu">
                  <option value="2"<?php if($moderns_top_menu == '2') echo ' selected="selected"';?>><?php echo $entry_vertical; ?></option>
                  <option value="3"<?php if($moderns_top_menu == '3') echo ' selected="selected"';?>><?php echo $entry_horizontal; ?></option>
                </select></td>
            </tr>
          </table>
          <table class="form">
            <tr>
              <td colspan="5"><h2><?php echo $entry_my_account; ?></h2></td>
            </tr>
            <tr>
              <td><?php echo $entry_status; ?></td>
              <td><select name="moderns_my_account">
                  <option value="0"<?php if($moderns_my_account == '0') echo ' selected="selected"';?>><?php echo $text_disabled; ?></option>
                  <option value="1"<?php if($moderns_my_account == '1') echo ' selected="selected"';?>><?php echo $text_enabled; ?></option>
                </select></td>
            </tr>
          </table>
          
          <h2 style="margin-bottom:15px;"><?php echo $entry_custom_links; ?></h2>
          <div id="language1" class="htabs" style="padding-left:165px;">
            <?php foreach ($languages as $language) { ?>
            <a href="#tab1-language-<?php echo $language['language_id']; ?>"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
            <?php } ?>
          </div>
          <?php foreach ($languages as $language) { ?>
          <div id="tab1-language-<?php echo $language['language_id']; ?>">
            <table class="form">
              <tr>
                <td><?php echo $entry_link1; ?></td>
                <td><select name="moderns_custom_link1[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_custom_link1[$language['language_id']]) && $moderns_custom_link1[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php }else if(isset($moderns_custom_link1[$language['language_id']]) && $moderns_custom_link1[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $text_disabled; ?></option>
                    <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php } ?>
                  </select></td>
                <td><?php echo $entry_title_label; ?>
                  <input type="text" name="moderns_custom_link1_title[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_link1_title[$language['language_id']]) ? $moderns_custom_link1_title[$language['language_id']] : ''; ?>" /></td>
                <td><?php echo $entry_url; ?>
                  <input type="text" name="moderns_custom_link1_url[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_link1_url[$language['language_id']]) ? $moderns_custom_link1_url[$language['language_id']] : ''; ?>" /></td>
                <td><?php echo $entry_open; ?>
                  <select name="moderns_target_link1[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_target_link1[$language['language_id']]) && $moderns_target_link1[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $entry_same_tab; ?></option>
                    <option value="1"><?php echo $entry_new_tab; ?></option>
                    <?php }else if(isset($moderns_target_link1[$language['language_id']]) && $moderns_target_link1[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $entry_same_tab; ?></option>
                    <option value="1" selected="selected"><?php echo $entry_new_tab; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $entry_same_tab; ?></option>
                    <option value="1"><?php echo $entry_new_tab; ?></option>
                    <?php } ?>
                  </select></td>
              </tr>
              <tr>
                <td><?php echo $entry_link2; ?></td>
                <td><select name="moderns_custom_link2[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_custom_link2[$language['language_id']]) && $moderns_custom_link1[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php }else if(isset($moderns_custom_link2[$language['language_id']]) && $moderns_custom_link2[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $text_disabled; ?></option>
                    <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php } ?>
                  </select></td>
                <td><?php echo $entry_title_label; ?>
                  <input type="text" name="moderns_custom_link2_title[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_link2_title[$language['language_id']]) ? $moderns_custom_link2_title[$language['language_id']] : ''; ?>" /></td>
                <td><?php echo $entry_url; ?>
                  <input type="text" name="moderns_custom_link2_url[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_link2_url[$language['language_id']]) ? $moderns_custom_link2_url[$language['language_id']] : ''; ?>" /></td>
                <td><?php echo $entry_open; ?>
                  <select name="moderns_target_link2[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_target_link2[$language['language_id']]) && $moderns_target_link2[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $entry_same_tab; ?></option>
                    <option value="1"><?php echo $entry_new_tab; ?></option>
                    <?php }else if(isset($moderns_target_link2[$language['language_id']]) && $moderns_target_link2[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $entry_same_tab; ?></option>
                    <option value="1" selected="selected"><?php echo $entry_new_tab; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $entry_same_tab; ?></option>
                    <option value="1"><?php echo $entry_new_tab; ?></option>
                    <?php } ?>
                  </select></td>
              </tr>
              <tr>
                <td><?php echo $entry_link3; ?></td>
                <td><select name="moderns_custom_link3[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_custom_link3[$language['language_id']]) && $moderns_custom_link3[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php }else if(isset($moderns_custom_link3[$language['language_id']]) && $moderns_custom_link3[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $text_disabled; ?></option>
                    <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php } ?>
                  </select></td>
                <td><?php echo $entry_title_label; ?>
                  <input type="text" name="moderns_custom_link3_title[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_link3_title[$language['language_id']]) ? $moderns_custom_link3_title[$language['language_id']] : ''; ?>" /></td>
                <td><?php echo $entry_url; ?>
                  <input type="text" name="moderns_custom_link3_url[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_link3_url[$language['language_id']]) ? $moderns_custom_link3_url[$language['language_id']] : ''; ?>" /></td>
                <td><?php echo $entry_open; ?>
                  <select name="moderns_target_link3[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_target_link3[$language['language_id']]) && $moderns_target_link3[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $entry_same_tab; ?></option>
                    <option value="1"><?php echo $entry_new_tab; ?></option>
                    <?php }else if(isset($moderns_target_link3[$language['language_id']]) && $moderns_target_link3[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $entry_same_tab; ?></option>
                    <option value="1" selected="selected"><?php echo $entry_new_tab; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $entry_same_tab; ?></option>
                    <option value="1"><?php echo $entry_new_tab; ?></option>
                    <?php } ?>
                  </select></td>
              </tr>
            </table>
          </div>
          <?php } ?>
          
          <h2 style="margin-bottom:15px;"><?php echo $entry_custom_block; ?></h2>
          <div id="language2" class="htabs" style="padding-left:165px;">
            <?php foreach ($languages as $language) { ?>
            <a href="#tab2-language-<?php echo $language['language_id']; ?>"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
            <?php } ?>
          </div>
          <?php foreach ($languages as $language) { ?>
          <div id="tab2-language-<?php echo $language['language_id']; ?>">
            <table class="form">
              <tr>
                <td><?php echo $entry_status; ?></td>
                <td><select name="moderns_custom_block_status[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_custom_block_status[$language['language_id']]) && $moderns_custom_block_status[$language['language_id']] == '0'){?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php }else if(isset($moderns_custom_block_status[$language['language_id']]) && $moderns_custom_block_status[$language['language_id']] == '1'){?>
                    <option value="0"><?php echo $text_disabled; ?></option>
                    <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                    <?php }else{?>
                    <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                    <option value="1"><?php echo $text_enabled; ?></option>
                    <?php } ?>
                  </select></td>
              </tr>
              <tr>
                <td><?php echo $entry_title_label; ?></td>
                <td><input type="text" name="moderns_custom_block_title[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_custom_block_title[$language['language_id']]) ? $moderns_custom_block_title[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr>
                <td><?php echo $entry_custom_column; ?></td>
                <td><textarea name="moderns_custom_block_content[<?php echo $language['language_id']; ?>]" cols="50" rows="8"><?php echo isset($moderns_custom_block_content[$language['language_id']]) ? $moderns_custom_block_content[$language['language_id']] : ''; ?></textarea></td>
              </tr>
            </table>
          </div>
          <?php } ?>
        </div>
                
      </div>
      <div id="tab_colors">
        <div id="color_bg" class="vtabs">
        <a href="#tab_general_color"><?php echo $entry_general; ?></a>
        <!--<a href="#tab_body"><?php echo $entry_background_color; ?></a>-->
        <a href="#tab_main_menu_color"><?php echo $entry_main_menu; ?></a>
        <a href="#tab_price_color"><?php echo $entry_price; ?></a>
        <a href="#tab_button_color"><?php echo $entry_Button; ?></a>
        </div>
        <div id="tab_general_color" class="vtabs-content">
          <table class="form">
            <tr>
              <td colspan="2"><h2><?php echo $entry_general; ?></h2>
                <div class="info-help" style="text-align:left;"><?php echo $entry_colors_sub_help; ?></div></td>
            </tr>
            <tr>
              <td><?php echo $entry_body_text_color; ?></td>
              <td><input type="text" name="moderns_body_text_color" value="<?php echo $moderns_body_text_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_headings_color; ?></td>
              <td><input type="text" name="moderns_heading_color" value="<?php echo $moderns_heading_color; ?>" size="6" class="color {required:false,hash:true}"  />
              <span class="info-help" style="text-align:left;"> &nbsp;&nbsp; H1, Welcome Text Title, Box Heading, etc... </span>
              <br style="margin-bottom:12px" />
              <input type="text" name="moderns_heading_h2_color" value="<?php echo $moderns_heading_h2_color; ?>" size="6" class="color {required:false,hash:true}"  />
              <span class="info-help" style="text-align:left;"> &nbsp;&nbsp; H2</span>
              </td>
            </tr>
            
            <tr>
              <td><?php echo $entry_moderns_theme_color; ?></td>
              <td><input type="text" name="moderns_theme_color" value="<?php echo $moderns_theme_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
          </table>
        </div>
        <!--<div id="tab_body" class="vtabs-content">
          <table class="form">
            <td colspan="2"><h2><?php echo $entry_background_color; ?></h2></td>
            <tr>
              <td><?php echo $entry_pattern_sub; ?></td>
              <td><input type="text" name="moderns_background_color" value="<?php echo $moderns_background_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            </tr>
            
            <tr>
              <td><?php echo $entry_pattern_overlay; ?></td>
              <td><div>
                  <?php for ($i = 1; $i <= 53; $i++) { ?>
                  <div class="img-patt"><span class="info-help"><?php echo $i; ?></span><img src="view/image/patterns/<?php echo $i; ?>.png" alt="pattern <?php echo $i; ?>"></div>
                  <?php } ?>
                </div>
                <br>
                <select name="moderns_pattern_overlay" style="width:70px; padding:5px;">
                  <option value="none"selected="selected">none</option>
                  <?php for ($i = 1; $i <= 53; $i++) { 
									($this->config->get('moderns_pattern_overlay')== $i) ? $currentpat = 'selected' : $currentpat = '';
								?>
                  <option value="<?php echo $i; ?>" <?php echo $currentpat; ?>><?php echo $i; ?></option>
                  <?php } ?>
                </select>
                <span class="info-help"><?php echo $entry_pattern_overlay_help; ?></span></td>
            </tr>
            <tr>
              <td><?php echo $entry_custom_pattern; ?></td>
              <td><input type="hidden" name="moderns_custom_pattern" value="<?php echo $moderns_custom_pattern; ?>" id="moderns_custom_pattern" />
                <img src="<?php echo $moderns_pattern_preview; ?>" id="moderns_pattern_preview" /> <br />
                <a class="button" onclick="image_upload('moderns_custom_pattern', 'moderns_pattern_preview');"><?php echo $text_select; ?></a>&nbsp;&nbsp;&nbsp;<a class="button" onclick="$('#moderns_pattern_preview').attr('src', '<?php echo $no_image; ?>'); $('#moderns_custom_pattern').attr('value', '');"><?php echo $text_clear; ?></a></td>
            </tr>
            <tr>
              <td><?php echo $entry_custom_image; ?><br>
                <span class="info-help"><?php echo $entry_custom_image_help; ?></span></td>
              <td><input type="hidden" name="moderns_custom_image" value="<?php echo $moderns_custom_image; ?>" id="moderns_custom_image" />
                <img src="<?php echo $moderns_image_preview; ?>" alt="" id="moderns_image_preview" /> <br />
                <a class="button" onclick="image_upload('moderns_custom_image', 'moderns_image_preview');"><?php echo $text_select; ?></a>&nbsp;&nbsp;&nbsp;<a class="button" onclick="$('#moderns_image_preview').attr('src', '<?php echo $no_image; ?>'); $('#moderns_custom_image').attr('value', '');"><?php echo $text_clear; ?></a></td>
            </tr>
          </table>
        </div>-->
        <div id="tab_main_menu_color" class="vtabs-content">
          <table class="form">
            <tr>
              <td colspan="2"><h2><?php echo $entry_main_menu; ?></h2>
                <div class="info-help" style="text-align:left;"><?php echo $entry_colors_sub_help; ?></div></td>
            </tr>
            <tr>
              <td><?php echo $entry_link_color; ?></td>
              <td><input type="text" name="moderns_menu_link_color" value="<?php echo $moderns_menu_link_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_link_color_hover; ?></td>
              <td><input type="text" name="moderns_menu_link_hover_color" value="<?php echo $moderns_menu_link_hover_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            
            <tr>
              <td><?php echo $entry_bg_color_hover; ?></td>
              <td><input type="text" name="moderns_menu_bg_color_hover" value="<?php echo $moderns_menu_bg_color_hover; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            
            <tr>
              <td><?php echo $entry_sub_menu_link_color; ?></td>
              <td><input type="text" name="moderns_sub_menu_color" value="<?php echo $moderns_sub_menu_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_sub_menu_link_color_hover; ?></td>
              <td><input type="text" name="moderns_sub_menu_hover_color" value="<?php echo $moderns_sub_menu_hover_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
          </table>
        </div>
        <div id="tab_price_color" class="vtabs-content">
          <table class="form">
            <tr>
              <td colspan="2"><h2><?php echo $entry_price; ?></h2>
                <div class="info-help" style="text-align:left;"><?php echo $entry_colors_sub_help; ?></div></td>
            </tr>
            <tr>
              <td><?php echo $entry_price_color; ?></td>
              <td><input type="text" name="moderns_price_color" value="<?php echo $moderns_price_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_old_price_color; ?></td>
              <td><input type="text" name="moderns_old_price_color" value="<?php echo $moderns_old_price_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_new_price_color; ?></td>
              <td><input type="text" name="moderns_new_price_color" value="<?php echo $moderns_new_price_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_tax_price_color; ?></td>
              <td><input type="text" name="moderns_tax_price_color" value="<?php echo $moderns_tax_price_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
          </table>
        </div>
        <div id="tab_button_color" class="vtabs-content">
        
        <table class="form">
            <tr>
              <td colspan="2"><h2><?php echo $entry_Button; ?></h2>
                <div class="info-help" style="text-align:left;"><?php echo $entry_colors_sub_help; ?></div></td>
            </tr>
        </table>
        
        
        <table class="form">
            <tr>
              <td colspan="2"><h2>Product Add to Cart Button</h2>
            </tr>
            <tr>
              <td>Border Color</td>
              <td><input type="text" name="moderns_product_button_bg_color" value="<?php echo $moderns_product_button_bg_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            
            <tr>
              <td><?php echo $entry_text_color; ?></td>
              <td><input type="text" name="moderns_product_button_text_color" value="<?php echo $moderns_product_button_text_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_bg_color_hover; ?></td>
              <td><input type="text" name="moderns_product_button_bg_hover_color" value="<?php echo $moderns_product_button_bg_hover_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_text_color_hover; ?></td>
              <td><input type="text" name="moderns_product_button_text_hover_color" value="<?php echo $moderns_product_button_text_hover_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            
            
            <tr>
              <td colspan="2"><h2>Other Button</h2>
            </tr>
            <tr>
              <td>Border Color</td>
              <td><input type="text" name="moderns_button_bg_color" value="<?php echo $moderns_button_bg_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            
            <tr>
              <td><?php echo $entry_text_color; ?></td>
              <td><input type="text" name="moderns_button_text_color" value="<?php echo $moderns_button_text_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr><tr>
              <td><?php echo $entry_bg_color_hover; ?></td>
              <td><input type="text" name="moderns_button_bg_hover_color" value="<?php echo $moderns_button_bg_hover_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
            <tr>
              <td><?php echo $entry_text_color_hover; ?></td>
              <td><input type="text" name="moderns_button_text_hover_color" value="<?php echo $moderns_button_text_hover_color; ?>" size="6" class="color {required:false,hash:true}"  /></td>
            </tr>
          </table>
          
            
         
        </div>
      </div>
      
      
      <div id="tab_footer">
        <div id="language3" class="htabs" style="padding-left:190px;">
          <?php foreach ($languages as $language) { ?>
          <a class="tabs3" href="#tab3-language-<?php echo $language['language_id']; ?>"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
          <?php } ?>
        </div>
        <?php foreach ($languages as $language) { ?>
        <div id="tab3-language-<?php echo $language['language_id']; ?>">
          <div class="option_tabs vtabs"><a href="#tab_twitter_block-<?php echo $language['language_id']; ?>"><?php echo $entry_twitter_block_title; ?></a> <a href="#tab_facebook_box-<?php echo $language['language_id']; ?>"><?php echo $entry_facebook_box; ?></a> <a href="#tab_follow-<?php echo $language['language_id']; ?>"><?php echo $entry_follow_title; ?></a> <a href="#tab_contact-<?php echo $language['language_id']; ?>"><?php echo $entry_contact_title; ?></a> <a href="#tab_payments-<?php echo $language['language_id']; ?>"><?php echo $entry_payments_title; ?></a> <a href="#tab_powered-<?php echo $language['language_id']; ?>"><?php echo $entry_powered; ?></a> </div>
          
          
          <div id="tab_twitter_block-<?php echo $language['language_id']; ?>" class="vtabs-content">
            <table class="form">
              <tr>
                <td><h2><?php echo $entry_twitter_block_title; ?></h2></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><?php echo $entry_twitter_block; ?></td>
                <td><input type="text" name="twitter_username[<?php echo $language['language_id']; ?>]" value="<?php echo isset($twitter_username[$language['language_id']]) ? $twitter_username[$language['language_id']] : ''; ?>" /></td>
              </tr>
              
              <tr>
            <td><label style="width: 110px">Widget ID:</label></td>
            <td><input type="text" name="moderns_widget_id[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_widget_id[$language['language_id']]) ? $moderns_widget_id[$language['language_id']] : ''; ?>" />&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="link" target="_blank" href="http://demo.harnishdesign.net/opencart/bigshop/twitter-widget-id.jpg">Find your Widget ID >></a></td>
          </tr>
          
              <tr>
                <td>Twitter box align:</td>
                <td><select name="moderns_twitter_box_align[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_twitter_box_align[$language['language_id']]) && $moderns_twitter_box_align[$language['language_id']] == '1'){?>
                    <option value="1" selected="selected">Left</option>
                    <option value="2">Right</option>
                    <?php }else if(isset($moderns_twitter_box_align[$language['language_id']]) && $moderns_twitter_box_align[$language['language_id']] == '2'){?>
                    <option value="1">Left</option>
                    <option value="2" selected="selected">Right</option>
                    <?php }else{?>
                    <option value="1" selected="selected">Left</option>
                    <option value="2">Right</option>
                    <?php } ?>
                  </select></td>
              </tr>
              
            </table>
          </div>
          <div id="tab_facebook_box-<?php echo $language['language_id']; ?>" class="vtabs-content">
            <table class="form">
              <tr>
                <td><h2><?php echo $entry_facebook_box; ?></h2></td>
                <td>&nbsp;</td>
              </tr>
              
              
              <tr>
                <td><?php echo $entry_facebook_id; ?></td>
                <td><input type="text" name="moderns_facebook_id_box[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_facebook_id_box[$language['language_id']]) ? $moderns_facebook_id_box[$language['language_id']] : ''; ?>" />
                  &nbsp;&nbsp;&nbsp;&nbsp; <a class="link" target="_blank" href="http://findmyfacebookid.com/"><?php echo $entry_find_id_facebook; ?></a></td>
              </tr><tr>
                <td><?php echo $entry_select_facebook_style; ?></td>
                <td><select name="moderns_facebook_box_align[<?php echo $language['language_id']; ?>]">
                    <?php if(isset($moderns_facebook_box_align[$language['language_id']]) && $moderns_facebook_box_align[$language['language_id']] == '1'){?>
                    <option value="1" selected="selected">Left</option>
                    <option value="2">Right</option>
                    <?php }else if(isset($moderns_facebook_box_align[$language['language_id']]) && $moderns_facebook_box_align[$language['language_id']] == '2'){?>
                    <option value="1">Left</option>
                    <option value="2" selected="selected">Right</option>
                    <?php }else{?>
                    <option value="1" selected="selected">Left</option>
                    <option value="2">Right</option>
                    <?php } ?>
                  </select></td>
              </tr>
            </table>
          </div>
          
          <div id="tab_follow-<?php echo $language['language_id']; ?>" class="vtabs-content social">
            <table class="form">
              <tr>
                <td><h2><?php echo $entry_follow_title; ?></h2></td>
                <td>&nbsp;</td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/facebook.png" alt="Facebook" title="Facebook"><?php echo $entry_facebook_id; ?></td>
                <td><input type="text" name="moderns_facebook_id[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_facebook_id[$language['language_id']]) ? $moderns_facebook_id[$language['language_id']] : ''; ?>" />
                  &nbsp;&nbsp;&nbsp;&nbsp; <a class="link" target="_blank" href="http://findmyfacebookid.com/"><?php echo $entry_find_id_facebook; ?></a></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/twitter.png" alt="Twitter" title="Twitter"><?php echo $entry_twitter_username; ?></td>
                <td><input type="text" name="moderns_twitter_username[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_twitter_username[$language['language_id']]) ? $moderns_twitter_username[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/googleplus.png" alt="Google+" title="Google+"><?php echo $entry_gplus_id; ?></td>
                <td><input type="text" name="moderns_gplus_id[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_gplus_id[$language['language_id']]) ? $moderns_gplus_id[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/pinterest.png" alt="Pinterest" title="Pinterest"><?php echo $entry_pint_id; ?></td>
                <td><input type="text" name="moderns_pint_id[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_pint_id[$language['language_id']]) ? $moderns_pint_id[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/rss.png" alt="RSS" title="RSS"><?php echo $entry_RSS; ?></td>
                <td><input type="text" name="moderns_rss[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_rss[$language['language_id']]) ? $moderns_rss[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/vimeo.png" alt="Vimeo" title="Vimeo"><?php echo $entry_vimeo; ?></td>
                <td><input type="text" name="moderns_vimeo[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_vimeo[$language['language_id']]) ? $moderns_vimeo[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/flickr.png" alt="flickr" title="Flickr"><?php echo $entry_flickr; ?></td>
                <td><input type="text" name="moderns_flickr[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_flickr[$language['language_id']]) ? $moderns_flickr[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/youtube.png" alt="YouTube" title="YouTube"><?php echo $entry_youtube; ?></td>
                <td><input type="text" name="moderns_youtube[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_youtube[$language['language_id']]) ? $moderns_youtube[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/skype.png" alt="skype" title="Skype"><?php echo $entry_skype; ?></td>
                <td><input type="text" name="moderns_skype[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_skype[$language['language_id']]) ? $moderns_skype[$language['language_id']] : ''; ?>" /></td>
              </tr>
            </table>
          </div>
          <div id="tab_contact-<?php echo $language['language_id']; ?>" class="vtabs-content">
            <table class="form">
              <tr>
                <td><h2><?php echo $entry_contact_title; ?></h2></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><?php echo $entry_title_label; ?></td>
                <td><input type="text" name="moderns_contact[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_contact[$language['language_id']]) ? $moderns_contact[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr>
                <td><?php echo $entry_address; ?></td>
                <td><input type="text" name="moderns_address[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_address[$language['language_id']]) ? $moderns_address[$language['language_id']] : ''; ?>" /></td>
              </tr>
              <tr>
                <td><?php echo $entry_mobile; ?></td>
                <td><input type="text" name="moderns_mobile[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_mobile[$language['language_id']]) ? $moderns_mobile[$language['language_id']] : ''; ?>" /></td>
              </tr>
              
              <tr>
                <td><?php echo $entry_email; ?></td>
                <td><input type="text" name="moderns_email[<?php echo $language['language_id']; ?>]" value="<?php echo isset($moderns_email[$language['language_id']]) ? $moderns_email[$language['language_id']] : ''; ?>" /></td>
              </tr>
            </table>
          </div>
          <div id="tab_payments-<?php echo $language['language_id']; ?>" class="vtabs-content payment_image">
            <table class="form">
              <tr>
                <td><h2><?php echo $entry_payments_title; ?></h2></td>
                <td>&nbsp;</td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_paypal.png" alt="paypal" title="PayPal"><?php echo $entry_paypal; ?></td>
                <td><?php 
              	if(isset($moderns_paypal[$language['language_id']]) && $moderns_paypal[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_paypal[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_american.png" alt="american-express" title="American Express"><?php echo $entry_american; ?></td>
                <td><?php 
              	if(isset($moderns_american[$language['language_id']]) && $moderns_american[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_american[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_2checkout.png" alt="2checkout" title="2checkout"><?php echo $entry_2checkout; ?></td>
                <td><?php 
              	if(isset($moderns_2checkout[$language['language_id']]) && $moderns_2checkout[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_2checkout[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_maestro.png" alt="maestro" title="Maestro"><?php echo $entry_maestro; ?></td>
                <td><?php 
              	if(isset($moderns_maestro[$language['language_id']]) && $moderns_maestro[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_maestro[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_discover.png" alt="discover" title="Discover"><?php echo $entry_discover; ?></td>
                <td><?php 
              	if(isset($moderns_discover[$language['language_id']]) && $moderns_discover[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_discover[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_mastercard.png" alt="mastercard" title="MasterCard"><?php echo $entry_mastercard; ?></td>
                <td><?php 
              	if(isset($moderns_mastercard[$language['language_id']]) && $moderns_mastercard[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_mastercard[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_visa.png" alt="visa" title="Visa"><?php echo $entry_visa; ?></td>
                <td><?php 
              	if(isset($moderns_visa[$language['language_id']]) && $moderns_visa[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_visa[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_sagepay.png" alt="sagepay" title="sagepay"><?php echo $entry_sagepay; ?></td>
                <td><?php 
              	if(isset($moderns_sagepay[$language['language_id']]) && $moderns_sagepay[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_sagepay[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
              <tr style="line-height:26px;">
                <td><img  src="../catalog/view/theme/moderns/image/payment_moneybookers.png" alt="moneybookers" title="Moneybookers"><?php echo $entry_moneybookers; ?></td>
                <td><?php 
              	if(isset($moderns_moneybooker[$language['language_id']]) && $moderns_moneybooker[$language['language_id']]){
              		$chk = 'checked="checked"';
              	}else{
                	$chk = '';
               	}                 
              ?>
                  <input type="checkbox" name="moderns_moneybooker[<?php echo $language['language_id']; ?>]" <?php echo $chk; ?>></td>
              </tr>
            </table>
          </div>
          <div id="tab_powered-<?php echo $language['language_id']; ?>" class="vtabs-content">
            <table class="form">
              <tr>
                <td><h2><?php echo $entry_powered; ?></h2></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><?php echo $entry_custom_column; ?></td>
                <td><textarea name="moderns_powered[<?php echo $language['language_id']; ?>]" cols="50" rows="8" id="moderns_powered[<?php echo $language['language_id']; ?>]"><?php echo isset($moderns_powered[$language['language_id']]) ? $moderns_powered[$language['language_id']] : ''; ?></textarea></td>
              </tr>
            </table>
          </div>
        </div>
        <?php } ?>
      </div>
      <div id="tab_fonts" >
        <table class="form">
          <tr>
            <td colspan="2"><h2><?php echo $entry_fonts_sub; ?></h2></td>
          </tr>
          <tr>
            <td><?php echo $entry_body_font ?></td>
            <td><select name="moderns_body_font">
                <?php foreach ($fonts as $fv => $fc) { ?>
                <?php ($fv ==  $this->config->get('moderns_body_font')) ? $currentfont = 'selected' : $currentfont=''; ?>
                <option value="<?php echo $fv; ?>" <?php echo $currentfont; ?> ><?php echo $fc; ?></option>
                <?php } ?>
              </select>
              </td>
          </tr>
          <tr>
            <td><?php echo $entry_title_font; ?></td>
            <td><select name="moderns_title_font">
                <?php foreach ($fonts as $fv => $fc) { ?>
                <?php ($fv ==  $this->config->get('moderns_title_font')) ? $currentfont = 'selected' : $currentfont=''; ?>
                <option value="<?php echo $fv; ?>" <?php echo $currentfont; ?> ><?php echo $fc; ?></option>
                <?php } ?>
              </select>
              
              &nbsp;&nbsp;
              Weight: 
              <select name="moderns_heading_font_weight">
                  <option value="normal"<?php if($moderns_heading_font_weight == '0') echo ' selected="selected"';?>>Normal</option>
                  <option value="bold"<?php if($moderns_heading_font_weight == '1') echo ' selected="selected"';?>>Bold</option>
                </select>
              </td>
          </tr>
          <tr>
            <td>Main Menu Font:</td>
            <td><select name="moderns_main_menu_font">
                <?php foreach ($fonts as $fv => $fc) { ?>
                <?php ($fv ==  $this->config->get('moderns_main_menu_font')) ? $currentfont = 'selected' : $currentfont=''; ?>
                <option value="<?php echo $fv; ?>" <?php echo $currentfont; ?> ><?php echo $fc; ?></option>
                <?php } ?>
              </select>
              &nbsp;&nbsp;
              Weight: 
              <select name="moderns_menu_font_weight">
                  <option value="normal"<?php if($moderns_menu_font_weight == '0') echo ' selected="selected"';?>>Normal</option>
                  <option value="bold"<?php if($moderns_menu_font_weight == '1') echo ' selected="selected"';?>>Bold</option>
                </select>
              &nbsp;&nbsp;
                Uppercase: 
              <select name="moderns_menu_font_uppercase">
                  <option value="uppercase"<?php if($moderns_menu_font_uppercase == '0') echo ' selected="selected"';?>>Yes</option>
                  <option value="capitalize"<?php if($moderns_menu_font_uppercase == '1') echo ' selected="selected"';?>>No</option>
                </select>
                &nbsp;&nbsp;
                Font Size: 
              <select name="moderns_menu_font_size">
              <option value=""<?php if($moderns_menu_font_size == '0') echo ' selected="selected"';?>>None</option>
                  <option value="12"<?php if($moderns_menu_font_size == '12') echo ' selected="selected"';?>>12px</option>
                  <option value="13"<?php if($moderns_menu_font_size == '13') echo ' selected="selected"';?>>13px</option>
                  <option value="14"<?php if($moderns_menu_font_size == '14') echo ' selected="selected"';?>>14px</option>
                  <option value="15"<?php if($moderns_menu_font_size == '15') echo ' selected="selected"';?>>15px</option>
                  <option value="16"<?php if($moderns_menu_font_size == '16') echo ' selected="selected"';?>>16px</option>
                  <option value="17"<?php if($moderns_menu_font_size == '17') echo ' selected="selected"';?>>17px</option>
                  <option value="18"<?php if($moderns_menu_font_size == '18') echo ' selected="selected"';?>>18px</option>
                  <option value="19"<?php if($moderns_menu_font_size == '19') echo ' selected="selected"';?>>19px</option>
                  <option value="20"<?php if($moderns_menu_font_size == '20') echo ' selected="selected"';?>>20px</option>
                  <option value="21"<?php if($moderns_menu_font_size == '21') echo ' selected="selected"';?>>21px</option>
                  <option value="22"<?php if($moderns_menu_font_size == '22') echo ' selected="selected"';?>>22px</option>
                  <option value="23"<?php if($moderns_menu_font_size == '23') echo ' selected="selected"';?>>23px</option>
                  <option value="24"<?php if($moderns_menu_font_size == '24') echo ' selected="selected"';?>>24px</option>

                  
                </select>
              </td>
          </tr>
        </table>
      </div>
      <div id="tab_custom_css">
        <table class="form">
          <tr>
            <td><?php echo $entry_custom_css; ?></td>
            <td><textarea name="moderns_custom_css" cols="52" rows="20" style="width:80%;"><?php echo $moderns_custom_css; ?></textarea></td>
          </tr>
        </table>
      </div>
    </form>
  </div>
</div>
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript"><!--
<?php foreach ($languages as $language) { ?>
CKEDITOR.replace('moderns_custom_block_content[<?php echo $language["language_id"]; ?>]', {
	filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});

CKEDITOR.replace('moderns_powered[<?php echo $language["language_id"]; ?>]', {
	filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
<?php } ?>
//--></script>
<script type="text/ecmascript">
$(document).ready(function() {  
    $('.tabs3').click(function(){    		
		var id = $(this).attr('href');			 
		$(id).children().eq(1).attr('style','display:block');	
		$(id).children().children().eq(0).addClass('selected');		
	});
});
</script>
<script type="text/javascript"><!--
$('#tabs a').tabs();
$('#header_tabs a').tabs();
$('#color_bg a').tabs();
$('#settings_tabs a').tabs();
$('.option_tabs a').tabs();
$('#language1 a').tabs();
$('#language2 a').tabs();
$('#language3 a').tabs();
//--></script>
<script type="text/javascript" src="view/javascript/jscolor/jscolor.js"></script>
<script type="text/javascript"><!--

$(document).ready(function() {

	$('	#moderns_background_color').ColorPicker({
		onSubmit: function(hsb, hex, rgb, el) {
			$(el).val(hex);
			$(el).ColorPickerHide();
		},
		onBeforeShow: function () {
			$(this).ColorPickerSetColor(this.value);
		}
	})
	.bind('keyup', function(){
		$(this).ColorPickerSetColor(this.value);
	});
	 });

//--></script>
<script type="text/javascript"><!--
function image_upload(field, preview) {
	$('#dialog').remove();
	
	$('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');
	
	$('#dialog').dialog({
		title: '<?php echo $text_image_manager; ?>',
		close: function (event, ui) {
			if ($('#' + field).attr('value')) {
				$.ajax({
					url: 'index.php?route=common/filemanager/image&token=<?php echo $token; ?>&image=' + encodeURIComponent($('#' + field).val()),
					dataType: 'text',
					success: function(data) {
						$('#' + preview).replaceWith('<img src="' + data + '" alt="" id="' + preview + '" />');
					}
				});
			}
		},	
		bgiframe: false,
		width: 700,
		height: 400,
		resizable: false,
		modal: false
	});
};
//--></script>
<?php echo $footer; ?>